package com.xhb.dubbo.controller;

import com.xhb.dubbo.api.StudentService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: gaoh
 * @Date: create in 2021/5/13 19:27
 * @Version:
 * @Description:
 */
@RestController
public class StudentController {

    @Reference
    private StudentService studentService;


    @RequestMapping(value = "/showUserInfo")
    public String showUserInfo(String id) {
        return studentService.getStudent(id);
    }
}
